<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>计算器</title>
		<link rel="stylesheet" type="text/css" href="css/实验三.css"/>
		<script type="text/javascript" src="js/实验三.js"> 
			
		</script>
	</head>
	<body>
		<div class="center">
			<h1>HTML+CSS+JS计算器的实现</h1>
			<form>
				<div class="p1">
					<input class="btn2" type="button" id="C" value="C" onclick="cle()"/>
					<input class="text" type="text" id="text" value="" />
				</div>
				<div class="p2">
					<input class="btn" type="button" id="s7" value="7" onclick="getvalue(this.value)" />
					<input class="btn" type="button" id="s8" value="8" onclick="getvalue(this.value)"/>
					<input class="btn" type="button" id="s9" value="9" onclick="getvalue(this.value)"/>
					<input class="btn1" type="button" id="s+" value="+" onclick="getvalue(this.value)" />
				</div>
				<div class="p3">
					<input class="btn" type="button" id="s4" value="4" onclick="getvalue(this.value)"/>
					<input class="btn" type="button" id="s5" value="5" onclick="getvalue(this.value)"/>
					<input class="btn" type="button" id="s6" value="6" onclick="getvalue(this.value)"/>
					<input class="btn1" type="button" id="s*" value="*" onclick="getvalue(this.value)"/>
				</div>
				<div class="p4">
					<input class="btn" type="button" id="s1" value="1" onclick="getvalue(this.value)"/>
					<input class="btn" type="button" id="s2" value="2" onclick="getvalue(this.value)"/>
					<input class="btn" type="button" id="s3" value="3" onclick="getvalue(this.value)"/>
					<input class="btn1" type="button" id="s-" value="-" onclick="getvalue(this.value)"/>
				</div>
				<div class="p5">
					<input class="btn" type="button" id="s0" value="0" onclick="getvalue(this.value)"/>
					<input class="btn1" type="button" id="s." value="." onclick="getvalue(this.value)"/>
					<input class="btn1" type="button" id="s/" value="/" onclick="getvalue(this.value)"/>
					<input class="btn2" type="button" id="s=" value="=" onclick="jisuan()"/>
				</div>
			</form>
		</div>
	</body>
</html>
